package com.shengqin.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shengqin.common.pojo.CommonPage;
import com.shengqin.common.pojo.CommonResult;
import com.shengqin.entity.SysOperLog;
import com.shengqin.service.ISysOperaLogService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("admin/v1/sysOperaLog")
public class SysOperaLogController {

    private final ISysOperaLogService operaLogService;

    public SysOperaLogController(ISysOperaLogService operaLogService) {
        this.operaLogService = operaLogService;
    }

    @PostMapping("queryPage")
    public CommonResult<Page<SysOperLog>> queryPage(@RequestBody CommonPage<SysOperLog> commonPage) {
        return CommonResult.data(operaLogService.queryPage(commonPage));
    }
}
